package Collection;

/*
    泛型
 */
public class GenericityDemo<E> {
    private E e;

    public E getE() {
        return e;
    }

    public void setE(E e) {
        this.e = e;
    }

    public static void main(String[] args) {
        GenericityDemo<String> genericityDemo=new GenericityDemo<String>();
        genericityDemo.setE("String");
        System.out.println(genericityDemo.getE());
    }
}
